package com.bjpowernode.dataservice.service;

import com.bjpowernode.api.model.FinanceAccount;
import com.bjpowernode.api.serivce.FinanceAccountService;
import com.bjpowernode.dataservice.mapper.FinanceAccountMapper;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

/**
 * @author 麦翔盛
 * @ClassName: FinanceAccountServiceImpl
 * @Package: com.bjpowernode.dataservice.service
 * @description:
 * @date 2022/5/20 9:17
 */
@DubboService(interfaceClass = FinanceAccountService.class,version = "1.0")
public class FinanceAccountServiceImpl implements FinanceAccountService {

    @Resource
    private FinanceAccountMapper financeAccountMapper;
    @Override
    public FinanceAccount queryByUserId(Integer uid) {
        return financeAccountMapper.selectByUidForUpdate(uid);
    }
}
